package com.gmsk.pocket.entity;


import org.springframework.data.elasticsearch.annotations.Document;


@Document(indexName = "docfile", type = "doc", shards = 1, replicas = 0, refreshInterval = "5s")
public class DocFile {

    private Integer id;

    private Integer docId;

    private String fileName;

    private String originalFileName;

    private String fileSha256;

    private Integer fileConvert;

    private Integer fileIndex;

    private Integer fileSize;

    private String fileContent;

    private String fileType;

    private String fileOriginalType;

    public DocFile(Integer id, Integer docId, String fileName, String originalFileName, String fileSha256, Integer fileConvert, Integer fileIndex, Integer fileSize, String fileType, String fileOriginalType) {
        this.id = id;
        this.docId = docId;
        this.fileName = fileName;
        this.originalFileName = originalFileName;
        this.fileSha256 = fileSha256;
        this.fileConvert = fileConvert;
        this.fileIndex = fileIndex;
        this.fileSize = fileSize;
        this.fileType = fileType;
        this.fileOriginalType = fileOriginalType;
    }

    public DocFile() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getDocId() {
        return docId;
    }

    public void setDocId(Integer docId) {
        this.docId = docId;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName == null ? null : fileName.trim();
    }

    public String getOriginalFileName() {
        return originalFileName;
    }

    public void setOriginalFileName(String originalFileName) {
        this.originalFileName = originalFileName == null ? null : originalFileName.trim();
    }

    public String getFileSha256() {
        return fileSha256;
    }

    public void setFileSha256(String fileSha256) {
        this.fileSha256 = fileSha256 == null ? null : fileSha256.trim();
    }

    public Integer getFileConvert() {
        return fileConvert;
    }

    public void setFileConvert(Integer fileConvert) {
        this.fileConvert = fileConvert;
    }

    public Integer getFileIndex() {
        return fileIndex;
    }

    public void setFileIndex(Integer fileIndex) {
        this.fileIndex = fileIndex;
    }

    public Integer getFileSize() {
        return fileSize;
    }

    public void setFileSize(Integer fileSize) {
        this.fileSize = fileSize;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType == null ? null : fileType.trim();
    }

    public String getFileOriginalType() {
        return fileOriginalType;
    }

    public void setFileOriginalType(String fileOriginalType) {
        this.fileOriginalType = fileOriginalType == null ? null : fileOriginalType.trim();
    }

    public String getFileContent() {
        return fileContent;
    }

    public void setFileContent(String fileContent) {
        this.fileContent = fileContent;
    }
}